//
//  DnRollMenuItem.m
//  DnRollTabbarMenu
//
//  Created by Ngoc on 27/11/2011.
//  Copyright 2011 __MyCompanyName__. All rights reserved.
//

#import "DnRollMenuItem.h"


@implementation DnRollMenuItem

@synthesize internalView, btnPadding;

- (id)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
    }
    return self;
}

-(id) initWithFrame:(CGRect) frame customView:(UIView *)customView
{
    btnPadding = 0;
    self = [super initWithFrame:frame];
    if (self) {
        if (customView) {
            self.frame = frame;
            internalView = customView;
            [self.contentView addSubview:internalView];
            self.transform = CGAffineTransformMakeRotation(M_PI*0.5);
            self.selectionStyle = UITableViewCellSelectionStyleNone;
        }
        
    }
    return self;
}
-(NSString*) reuseIdentifier
{
    return @"MenuItem";
}
/*
 // Only override drawRect: if you perform custom drawing.
 // An empty implementation adversely affects performance during animation.
 - (void)drawRect:(CGRect)rect
 {
 // Drawing code
 }
 */
-(BOOL) getIsVisible
{
    return  !internalView.hidden;
}
-(void) setIsVisible:(BOOL)value
{
    internalView.hidden = !value;
    
}
- (void)dealloc
{
    [super dealloc];
}

@end
